package com.nuts.core.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nuts.base.bean.PermissionTreeVO;
import com.nuts.base.core.BaseServiceImpl;
import com.nuts.base.core.IBaseDao;
import com.nuts.core.bean.request.PropertyReqVO;
import com.nuts.core.bean.response.PropertyVO;
import com.nuts.core.dao.IPropertyDao;
import com.nuts.core.service.IPropertyService;

/**
 * 数据字典Service
 * 
 * @author 许自辉
 * @date 2017年7月24日 下午3:35:08
 */
@Service
public class PropertyImpl extends BaseServiceImpl<PropertyReqVO, PropertyVO> implements IPropertyService {

	private IPropertyDao propertyDao;

	@Autowired
	@Override
	public void setBaseDao(IBaseDao<PropertyReqVO, PropertyVO> baseDao) {
		this.baseDao = baseDao;
		this.propertyDao = (IPropertyDao) baseDao;
	}

	@Override
	public List<PermissionTreeVO> getTree(PropertyReqVO propertyReqVO) {
		return propertyDao.getTree(propertyReqVO);
	}

}
